﻿using Ls.Web.Framework.Permissions;
using Microsoft.AspNetCore.Html;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Text;
using Ls.Utils;
using System.Security.Claims;
using Ls.Web.Admin.Models;

namespace Ls.Web.Framework.Html
{
    public static class HtmlHelperExtensions
    {
        private static UserService userService = new UserService();
        /// <summary>
        /// 工具栏按钮
        /// </summary>
        /// <param name="htmlHelper"></param>
        /// <param name="permissionName"></param>
        /// <returns></returns>
        public static sys_user UserInfo(this IHtmlHelper htmlHelper) {
             return userService.GetUserInfo(AuthHelper.GetUserid());
        }
        
    }
}
